package com.chukun.module.inf;

/**
 * @author chukun
 * @version 1.0.0
 * @description 定义封闭类接口
 * @createTime 2022年06月06日 22:02:00
 */
public sealed interface Returned<T> {

    Returned.ErrorCode UNDEFINED = new ErrorCode(Integer.MIN_VALUE);


    record ReturnValue<T>(T returnValue) implements Returned {
    }

    record ErrorCode(int errorCode) implements Returned {
    }
}
